package meituanbishi;

import java.util.Scanner;

/**
 * Created by JiaJia on 2019/9/11 0011.
 */
public class MoneyConvert {
    private  final static char[] NUM={'零','壹','贰','叁','肆','伍','陆','柒','捌','玖','拾','佰','仟','万','亿'};

    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        while (scanner.hasNext()){
            String input=scanner.nextLine();
            int count=0;
            for (int i = 0; i <input.length(); i++) {
                if (input.charAt(i)==','){
                    count++;
                }
            }
            count+=1;
            String[] str=new String[count];
            int index=0,k=0;
            while (index<input.length()){
                if (input.charAt(index)!='"'){
                    index++;
                    continue;
                }else {
                    for (int i = index; i <input.length(); i++) {
                        if (input.charAt(i)=='"'){
                            str[k]=input.substring(index+1,i);
                        }
                        index=i+1;
                        k++;
                    }
                }
            }
            StringBuilder sb=new StringBuilder();
            if (count==1){
                System.out.print("[\""+convert(str[0])+"\"]");
            }
            if (count==2){
                System.out.print("[\""+convert(str[0])+"\","+convert(str[1])+"\"]");
            }
            if (count==3){
                System.out.print("[\""+convert(str[0])+"\","+convert(str[1])+"\","+convert(str[2])+"\"]");
            }
            if (count==4){
                System.out.print("[\""+convert(str[0])+"\","+convert(str[1])+"\","+convert(str[2])+"\","+convert(str[3])+"\"]");
            }
        }scanner.close();
        /*double d=201.15;
        System.out.println(convert(d));*/
    }
    private static String convert(String s){
        double d=Double.parseDouble(s);
        long n=(long)d;
        StringBuilder builder=new StringBuilder();
        if (n>0){
            convert(n,builder);
            builder.append('元');
        }
        int v=(int)(d*100-n*100+0.0001);
        int i=v/10;
        int j=v%10;
        if (i==0&&j==0){
            builder.append('整');
            return builder.toString();
        }
        if (i!=0){
            builder.append(NUM[i]).append('角');
        }
        if (j!=0){
            builder.append(NUM[j]).append('分');
        }
        return builder.toString();
    }
    private static void convert(long n,StringBuilder builder){
        if (n>=100000000){
            long q=n/100000000;
            long r=n%100000000;
            convert(q,builder);
            builder.append('亿');
            if (r!=0){
                convert(r,builder);
            }
        }
        else if (n>=10000){
            long q=n/10000;
            long r=n%10000;
            convert(q,builder);
            builder.append('万');
            if (r!=0){
                if (r<100){
                    builder.append('零');
                }
                convert(r,builder);
            }
        }
        else if (n>=1000){
            long q=n/1000;
            long r=n%1000;
            convert(q,builder);
            builder.append('仟');
            if (r!=0){
                if (r<100){
                    builder.append('零');
                }
                convert(r,builder);
            }
        }
        else if (n>=100){
            long q=n/100;
            long r=n%100;
            convert(q,builder);
            builder.append('佰');
            if (r!=0){
                if (r<10){
                    builder.append('零');
                }
                convert(r,builder);
            }
        }
        else if (n>=10){
            long q=n/10;
            long r=n%10;
            if (q>1){
                convert(q,builder);
            }
            builder.append('拾');
            if (r!=0){
                convert(r,builder);
            }
        }else {
            builder.append(NUM[(int)n]);
        }
    }
}